package com.ybkj.daijia.template.shiro;

import freemarker.template.SimpleHash;
import org.apache.shiro.web.tags.HasRoleTag;

public class ShiroTags extends SimpleHash {

    /**
     *
     */
    private static final long serialVersionUID = 7488504190436795326L;

    public ShiroTags() {
        put("authenticated", new AuthenticatedTag());
        put("guest", new GuestTag());
        put("hasAnyRoles", new HasAnyRolesTag());
        put("hasPermission", new HasPermissionTag());
        put("hasRole", new HasRoleTag());
        put("lacksPermission", new LacksPermissionTag());
        put("lacksRole", new LacksRoleTag());
        put("notAuthenticated", new NotAuthenticatedTag());
        put("principal", new PrincipalTag());
        put("user", new UserTag());
        put("isMainCompany", new IsMainCompanyTag());
        put("hasVirtualMessage", new HasVirtualMessageTag());
        put("hasSmsMessage", new HasSmsMessageTag());
        put("haveAnyPermissions", new HaveAnyPermissionsTag());
    }
}